package com.hp.snap.gr.model.jaxb;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
import java.util.ArrayList;
import java.util.List;


/**
 * <p>Java class for SCPFromRemoteActionType complex type.
 * <p/>
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p/>
 * <pre>
 * &lt;complexType name="SCPFromRemoteActionType">
 *   &lt;complexContent>
 *     &lt;extension base="{}ActionType">
 *       &lt;sequence>
 *         &lt;element name="local" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         &lt;element name="remote" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/>
 *         &lt;element name="remoteHost" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *       &lt;/sequence>
 *     &lt;/extension>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SCPFromRemoteActionType", propOrder = {
        "local",
        "remote",
        "remoteHost"
})
public class SCPFromRemoteActionType
        extends ActionType {

    @XmlElement(required = true)
    protected String local;
    @XmlElement(required = true)
    protected List<String> remote;
    @XmlElement(required = true)
    protected String remoteHost;

    /**
     * Gets the value of the local property.
     *
     * @return possible object is
     * {@link String }
     */
    public String getLocal() {
        return local;
    }

    /**
     * Sets the value of the local property.
     *
     * @param value allowed object is
     *              {@link String }
     */
    public void setLocal(String value) {
        this.local = value;
    }

    /**
     * Gets the value of the remote property.
     * <p/>
     * <p/>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the remote property.
     * <p/>
     * <p/>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getRemote().add(newItem);
     * </pre>
     * <p/>
     * <p/>
     * <p/>
     * Objects of the following type(s) are allowed in the list
     * {@link String }
     */
    public List<String> getRemote() {
        if (remote == null) {
            remote = new ArrayList<String>();
        }
        return this.remote;
    }

    /**
     * Gets the value of the remoteHost property.
     *
     * @return possible object is
     * {@link String }
     */
    public String getRemoteHost() {
        return remoteHost;
    }

    /**
     * Sets the value of the remoteHost property.
     *
     * @param value allowed object is
     *              {@link String }
     */
    public void setRemoteHost(String value) {
        this.remoteHost = value;
    }

}
